package operation;

import book.BookList;

public class ExitOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        for(int i = 0;i< bookList.getSize();i++){
            bookList.setBook(i,null);
        }
        bookList.setBooks(null);
        System.out.println("退出系统...");
        System.exit(0);

    }
}
